/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.gui.dao;

import br.gui.cliente.Hotel;

/**
 *
 * @author Monique
 */
public class DAOHotel extends DAOMaster {
    	
    public DAOHotel() {
	  super();
	}
    	public Hotel findByNome(String nome) {
		for (Hotel hot : findAll(nome)) {
			if(hot.getNome().equals(nome))
				return hot;
		}
		
		return null;
	}

    private Iterable<Hotel> findAll(String nome) {
        throw new UnsupportedOperationException("Not yet implemented");
    }
}
